package com.hongdee.crm.task.service;

import com.hongdee.crm.task.entity.TCrmTaskCarVin;
import com.hongdee.crm.task.entity.TCrmTaskReal;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * Created by My on 2017/4/28.
 */
public interface ITCrmTaskManageService {

    public void parseExcel(MultipartFile file, String uid) throws Exception;

    public List<TCrmTaskCarVin> vinFileLists(String uid) throws Exception;

    /**
     * 根据信息生成相应的任务信息
     * @param params
     * @param uid
     * @param pcode
     * @param code
     * @param expectDate
     * @param data
     * @return
     * @throws Exception
     */
    public Integer createCarZhToTask(Map params,String uid,String pcode,String code,String expectDate,List<Map> data,String title) throws Exception;

    /**
     * 根据计算器生成相应的任务信息并保存
     * @param uid
     * @param paramMap
     * @return
     */
    public TCrmTaskReal saveCarSbAndDbTask(String uid, Map<String, Object> paramMap) throws Exception;

    /**
     * 根据计算器生成相应的任务信息
     * @param uid
     * @param paramMap
     * @return
     */
    public TCrmTaskReal createCarSbAndDbTask(String uid, Map<String, Object> paramMap) throws Exception;


    /**
     * 清空工工单维修类别
     * @param companyId
     * @throws Exception
     */
    public void moveWorkorderWxType(String companyId) throws Exception;

    /**
     * 初始化
     * @param companyId
     * @throws Exception
     */
    public void executeTask(String companyId)throws Exception;

}
